/**
 * Generate time : 2011-06-27 5:55:00
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cc.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCC5examineConditiondetail
 * 
 */
public class ZMCC5examineConditionDetail extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdConditionId = " "; /* 考核情况ID */
	private String fdClassifyId = " "; /* 分类ID */
	private String fdClassifyName = " "; /* 分项名称 */
	private String fdItemId = " "; /* 项目ID */
	private String fdItemName = " "; /* 项目名称 */
	private String fdExistIssue = " "; /* 存在问题 */
	private Float fdReducePoint = new Float(0); /* 扣分 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdConditionId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("考核情况ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdClassifyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("分类ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdClassifyName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("分项名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdItemId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("项目ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdItemName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("项目名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdExistIssue");
		eiColumn.setFieldLength(800);
		eiColumn.setDescName("存在问题");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReducePoint");
		eiColumn.setType("N");
		eiColumn.setScaleLength(1);
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("扣分");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCC5examineConditionDetail() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdConditionId - 考核情况ID
	 * 
	 * @return the fdConditionId
	 */
	public String getFdConditionId() {
		return this.fdConditionId;
	}

	/**
	 * set the fdConditionId - 考核情况ID
	 */
	public void setFdConditionId(String fdConditionId) {
		this.fdConditionId = fdConditionId;
	}

	/**
	 * get the fdClassifyId - 分类ID
	 * 
	 * @return the fdClassifyId
	 */
	public String getFdClassifyId() {
		return this.fdClassifyId;
	}

	/**
	 * set the fdClassifyId - 分类ID
	 */
	public void setFdClassifyId(String fdClassifyId) {
		this.fdClassifyId = fdClassifyId;
	}

	/**
	 * get the fdClassifyName - 分项名称
	 * 
	 * @return the fdClassifyName
	 */
	public String getFdClassifyName() {
		return this.fdClassifyName;
	}

	/**
	 * set the fdClassifyName - 分项名称
	 */
	public void setFdClassifyName(String fdClassifyName) {
		this.fdClassifyName = fdClassifyName;
	}
	
	/**
	 * get the fdItemId - 项目ID
	 * 
	 * @return the fdItemId
	 */
	public String getFdItemId() {
		return this.fdItemId;
	}

	/**
	 * set the fdItemId - 项目ID
	 */
	public void setFdItemId(String fdItemId) {
		this.fdItemId = fdItemId;
	}

	/**
	 * get the fdItemName - 项目名称
	 * 
	 * @return the fdItemName
	 */
	public String getFdItemName() {
		return this.fdItemName;
	}

	/**
	 * set the fdItemName - 项目名称
	 */
	public void setFdItemName(String fdItemName) {
		this.fdItemName = fdItemName;
	}
	
	/**
	 * get the fdExistIssue - 存在问题
	 * 
	 * @return the fdExistIssue
	 */
	public String getFdExistIssue() {
		return this.fdExistIssue;
	}

	/**
	 * set the fdExistIssue - 存在问题
	 */
	public void setFdExistIssue(String fdExistIssue) {
		this.fdExistIssue = fdExistIssue;
	}

	/**
	 * get the fdReducePoint - 扣分
	 * 
	 * @return the fdReducePoint
	 */
	public Float getFdReducePoint() {
		return this.fdReducePoint;
	}

	/**
	 * set the fdReducePoint - 扣分
	 */
	public void setFdReducePoint(Float fdReducePoint) {
		this.fdReducePoint = fdReducePoint;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdConditionId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdConditionId")), fdConditionId));
		setFdClassifyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassifyId")), fdClassifyId));
		setFdClassifyName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassifyName")), fdClassifyName));
		setFdItemId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItemId")), fdItemId));
		setFdItemName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdItemName")), fdItemName));
		setFdExistIssue(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdExistIssue")), fdExistIssue));
		setFdReducePoint(NumberUtils.toFloat(StringUtils.toString(map.get("fdReducePoint")), fdReducePoint));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdConditionId", StringUtils.toString(fdConditionId, eiMetadata.getMeta("fdConditionId")));
		map.put("fdClassifyId", StringUtils.toString(fdClassifyId, eiMetadata.getMeta("fdClassifyId")));
		map.put("fdClassifyName", StringUtils.toString(fdClassifyName, eiMetadata.getMeta("fdClassifyName")));
		map.put("fdItemId", StringUtils.toString(fdItemId, eiMetadata.getMeta("fdItemId")));
		map.put("fdItemName", StringUtils.toString(fdItemName, eiMetadata.getMeta("fdItemName")));
		map.put("fdExistIssue", StringUtils.toString(fdExistIssue, eiMetadata.getMeta("fdExistIssue")));
		map.put("fdReducePoint", StringUtils.toString(fdReducePoint, eiMetadata.getMeta("fdReducePoint")));

		return map;

	}
}